package cn.org.timespace.easyframe.action;

import java.util.List;
import java.util.Map;

import javax.servlet.http.Cookie;

import com.opensymphony.xwork2.ActionContext;

import cn.org.timespace.easyframe.model.permission.EfMenu;
import cn.org.timespace.easyframe.model.permission.EfUser;
import cn.org.timespace.easyframe.service.permission.EfControlPointService;
import cn.org.timespace.easyframe.service.permission.EfMenuService;
import cn.org.timespace.easyframe.service.permission.EfMenuShortcutService;
import cn.org.timespace.easyframe.service.permission.EfUserLoginLogService;
import cn.org.timespace.easyframe.service.permission.EfUserService;
import cn.org.timespace.easyframe.service.permission.SystemMessageService;
import cn.org.timespace.easyframe.util.web.Security;

public class EfPreLogonAction extends EFBaseAction {
	private static final long serialVersionUID = -3867809055997657672L;
	public static final String EVN_CHECK = "envcheck";
	//用户
	private EfUserService efUserService;
	//菜单
	private EfMenuService efMenuService;
	//快捷菜单
	private EfMenuShortcutService efMenuShortcutService;
	//用户登录日志
	private EfUserLoginLogService efUserLoginLogService;
	//系统公告
	private SystemMessageService systemMessageService;
	//控制点
	private EfControlPointService efControlPointService;
	public EfMenuService getEfMenuService() {
		return efMenuService;
	}
	public void setEfMenuService(EfMenuService efMenuService) {
		this.efMenuService = efMenuService;
	}
	public EfMenuShortcutService getEfMenuShortcutService() {
		return efMenuShortcutService;
	}
	public void setEfMenuShortcutService(EfMenuShortcutService efMenuShortcutService) {
		this.efMenuShortcutService = efMenuShortcutService;
	}
	public EfUserLoginLogService getEfUserLoginLogService() {
		return efUserLoginLogService;
	}
	public void setEfUserLoginLogService(EfUserLoginLogService efUserLoginLogService) {
		this.efUserLoginLogService = efUserLoginLogService;
	}
	public SystemMessageService getSystemMessageService() {
		return systemMessageService;
	}
	public void setSystemMessageService(SystemMessageService systemMessageService) {
		this.systemMessageService = systemMessageService;
	}
	public EfControlPointService getEfControlPointService() {
		return efControlPointService;
	}
	public void setEfControlPointService(EfControlPointService efControlPointService) {
		this.efControlPointService = efControlPointService;
	}
	public EfUserService getEfUserService() {
		return efUserService;
	}
	public void setEfUserService(EfUserService efUserService) {
		this.efUserService = efUserService;
	}
	public String execute() throws Exception {
		
		String s = getRequest().getParameter("s");

		if (s != null && s.equals("welcome")) {
			return SUCCESS;
		}
		return EVN_CHECK;
	}

}
